'use strict';

const mrPeng = {
  name: '彭于晏',
  age: 18,
  sex: 'male',
  health: 100,
  drink() {
    console.log('I am drinking');
    mrPeng.health++;
  },
  smoke() {
    console.log('I am smoking');
    mrPeng.health--;
  },
};

mrPeng.smoke();
mrPeng.smoke();
mrPeng.drink();
console.log(mrPeng.health);

// var a = 'like';
// mrPeng.a = '刘亦菲';
// mrPeng.like = '章若楠';

// mrPeng['age'] = 19;
// console.log(mrPeng);

// delete mrPeng.sex;
// console.log(mrPeng);
